<?php $this->load->view('user/header'); ?>

<div id="content">
	<div id='pictures'>
		<div id='ditu'></div>
	</div>
	<div id="loginAction" class="login-action clearfix">
		<?php $this->load->view('user/login_form'); ?>
	</div>
</div>
<?php $this->load->view('user/footer'); ?>
<script type="text/javascript">
	var map = new BMap.Map("ditu");            // 创建Map实例
	var point = new BMap.Point(116.391398,39.927885);
	map.centerAndZoom(point,12);
	
	var geolocation = new BMap.Geolocation();
	geolocation.getCurrentPosition(function(r){
	if(this.getStatus() == BMAP_STATUS_SUCCESS){
		var mk = new BMap.Marker(r.point);
	  map.addOverlay(mk);
	  map.panTo(r.point);
	}
	else {
		       
	}        
})
</script>
